package japidviews._layouts;
import java.util.*;
import java.io.*;
import cn.bran.japid.tags.Each;
import play.modules.gae.GAE;
import static play.templates.JavaExtensions.*;
import static cn.bran.play.JapidPlayAdapter.*;
import static play.data.validation.Validation.*;
import japidviews._layouts.*;
import play.i18n.Messages;
import play.data.validation.Validation;
import play.mvc.Scope.*;
import models.*;
import play.data.validation.Error;
import play.i18n.Lang;
import japidviews._tags.*;
import play.mvc.Http.*;
import controllers.*;
import japidviews._javatags.*;
//
// NOTE: This file was generated from: japidviews/_layouts/main.html
// Change to this file will be lost next time the template file is compiled.
//
@cn.bran.play.NoEnhance
public abstract class main extends cn.bran.play.JapidTemplateBase
{
	public static final String sourceTemplate = "japidviews/_layouts/main.html";
	{
		putHeader("Content-Type", "text/html; charset=utf-8");
		setContentType("text/html; charset=utf-8");
	}

// - add implicit fields with Play

	final Request request = Request.current(); 
	final Response response = Response.current(); 
	final Session session = Session.current();
	final RenderArgs renderArgs = RenderArgs.current();
	final Params params = Params.current();
	final Validation validation = Validation.current();
	final cn.bran.play.FieldErrors errors = new cn.bran.play.FieldErrors(validation);
	final play.Play _play = new play.Play(); 

// - end of implicit fields with Play 


	public main() {
		super(null);
	}
	public main(StringBuilder out) {
		super(out);
	}
	private String title; // line 2
	private String header; // line 2
	private String recipeCode; // line 2
	 public void layout(String title,String header,String recipeCode) {
		this.title = title;
		this.header = header;
		this.recipeCode = recipeCode;
		beginDoLayout(sourceTemplate);		;// line 1
p("<!DOCTYPE html>\n" + 
"\n" + 
"<html>\n" + 
"<head>\n" + 
"<title>");// line 2
		p(title);// line 7
		p("</title>\n" + 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" + 
"<meta name=\"revisit\" content=\"2 days\" />\n" + 
"<meta name=\"revisit-after\" content=\"2 days\" />\n" + 
"<meta name=\"document-state\" content=\"Dynamic\" />\n" + 
"<meta charset=\"UTF-8\">\n" + 
"<link rel=\"stylesheet\" media=\"screen\"\n" + 
"	href=\"/public/stylesheets/main.css\">\n" + 
"<link rel=\"stylesheet\" media=\"screen\"\n" + 
"	href=\"/public/stylesheets/bootstrap.css\">\n" + 
"<link rel=\"stylesheet\" media=\"screen\"\n" + 
"	href=\"/public/stylesheets/bootstrap-responsive.css\">\n" + 
"<link rel=\"shortcut icon\" type=\"image/png\"\n" + 
"	href=\"/public/images/favicon.png\">\n" + 
"<link rel=\"stylesheet\" type=\"text/css\"\n" + 
"	href=\"/public/stylesheets/jquery.lightbox-0.5.css\" media=\"screen\" />\n" + 
"<script src=\"/public/javascripts/jquery-1.7.2.min.js\"\n" + 
"	type=\"text/javascript\"></script>\n" + 
"<script src=\"/public/javascripts/jquery.lightbox-0.5.min.js\"\n" + 
"	type=\"text/javascript\"></script>\n" + 
"<script src=\"/public/javascripts/bootstrap.js\" type=\"text/javascript\"></script>\n" + 
"<meta name=\"keywords\" content=\"keywords\" />\n" + 
"<meta name=\"description\" content=\"description\" />\n" + 
"\n" + 
"<!-- Google Analytics -->\n" + 
"<script type=\"text/javascript\">\n" + 
"	var _gaq = _gaq || [];\n" + 
"	_gaq.push([ '_setAccount', 'UA-21120445-12' ]);\n" + 
"	_gaq.push([ '_trackPageview' ]);\n" + 
"\n" + 
"	(function() {\n" + 
"		var ga = document.createElement('script');\n" + 
"		ga.type = 'text/javascript';\n" + 
"		ga.async = true;\n" + 
"		ga.src = ('https:' == document.location.protocol ? 'https://ssl'\n" + 
"				: 'http://www')\n" + 
"				+ '.google-analytics.com/ga.js';\n" + 
"		var s = document.getElementsByTagName('script')[0];\n" + 
"		s.parentNode.insertBefore(ga, s);\n" + 
"	})();\n" + 
"</script>\n" + 
"<!-- /Google Analytics -->\n" + 
"\n" + 
"<!-- Yandex.Metrika counter -->\n" + 
"<script type=\"text/javascript\">\n" + 
"	(function(d, w, c) {\n" + 
"		(w[c] = w[c] || []).push(function() {\n" + 
"			try {\n" + 
"				w.yaCounter13639918 = new Ya.Metrika({\n" + 
"					id : 13639918,\n" + 
"					enableAll : true,\n" + 
"					webvisor : true\n" + 
"				});\n" + 
"			} catch (e) {\n" + 
"			}\n" + 
"		});\n" + 
"\n" + 
"		var n = d.getElementsByTagName(\"script\")[0], s = d\n" + 
"				.createElement(\"script\"), f = function() {\n" + 
"			n.parentNode.insertBefore(s, n);\n" + 
"		};\n" + 
"		s.type = \"text/javascript\";\n" + 
"		s.async = true;\n" + 
"		s.src = (d.location.protocol == \"https:\" ? \"https:\" : \"http:\")\n" + 
"				+ \"//mc.yandex.ru/metrika/watch.js\";\n" + 
"\n" + 
"		if (w.opera == \"[object Opera]\") {\n" + 
"			d.addEventListener(\"DOMContentLoaded\", f);\n" + 
"		} else {\n" + 
"			f();\n" + 
"		}\n" + 
"	})(document, window, \"yandex_metrika_callbacks\");\n" + 
"</script>\n" + 
"<noscript>\n" + 
"	<div>\n" + 
"		<img src=\"//mc.yandex.ru/watch/13639918\"\n" + 
"			style=\"position: absolute; left: -9999px;\" alt=\"\" />\n" + 
"	</div>\n" + 
"</noscript>\n" + 
"<!-- /Yandex.Metrika counter -->\n" + 
"\n" + 
"\n" + 
"</head>\n" + 
"<body>\n" + 
"	<div class=\"navbar navbar-fixed-top\">\n" + 
"		<div class=\"navbar-inner\">\n" + 
"			<div class=\"container\">\n" + 
"				<a class=\"brand\">Что приготовить</a>\n" + 
"				<ul class=\"nav\">\n" + 
"					<li ");// line 7
		if (request.action.equals("Application.index")){// line 96
		p("class=\"active\"");// line 96
		}// line 96
		p(">\n" + 
"						  <a href=\"");// line 96
		p(lookup("Application.index", new Object[]{}));// line 97
		p("\">Главная</a></li>\n" + 
"					<li ");// line 97
		if (request.action.equals("Application.recipes")){// line 98
		p("class=\"active\"");// line 98
		}// line 98
		p(">\n" + 
"						  <a href=\"");// line 98
		p(lookup("Application.recipes", new Object[]{}));// line 99
		p("\">Рецепты</a></li>\n" + 
"					<li ");// line 99
		if (request.action.equals("Application.addRecipeForm")){// line 100
		p("class=\"active\"");// line 100
		}// line 100
		p(">\n" + 
"					  <a href=\"");// line 100
		p(lookup("Application.addRecipeForm", new Object[]{}));// line 101
		p("\">Добавить рецепт</a></li>\n" + 
"				</ul>\n" + 
"				<ul class=\"nav pull-right\">\n" + 
"				");// line 101
		if (GAE.isLoggedIn()) {// line 104
		p("					<li class=\"dropdown\">\n" + 
"						<a class=\"dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">");// line 104
		p(GAE.getUser());// line 106
		p("<b class=\"caret\"></b></a>\n" + 
"						<ul class=\"dropdown-menu\">\n" + 
"							<li><a href=\"");// line 106
		p(lookup("Application.logout", new Object[]{}));// line 108
		p("\">Выйти</a></li></li>\n" + 
"						</ul>\n" + 
"					</li>\n" + 
"				");// line 108
		} else {// line 111
		p("					<li>\n" + 
"					");// line 111
		if(asBoolean(recipeCode != null)) {// line 113
		p("						<a href=\"");// line 113
		p(lookup("Application.login", request.action, recipeCode));// line 114
		p("\">Войти</a>\n" + 
"					");// line 114
		} else {// line 115
		p("						<a href=\"");// line 115
		p(lookup("Application.login", request.action));// line 116
		p("\">Войти</a>\n" + 
"					");// line 116
		}// line 117
		p("					</li>\n" + 
"				");// line 117
		}// line 119
		p("				</ul>\n" + 
"			</div>\n" + 
"		</div>\n" + 
"	</div>\n" + 
"\n" + 
"	<div class=\"container\">\n" + 
"\n" + 
"		<div class=\"content\">\n" + 
"\n" + 
"			<div class=\"page-header\">\n" + 
"				<h1>");// line 119
		p(header);// line 130
		p("</h1>\n" + 
"			</div>\n" + 
"\n" + 
"			<div class=\"row\">\n" + 
"				<div class=\"span12\">");// line 130
		doLayout();// line 134
		p("</div>\n" + 
"			</div>\n" + 
"\n" + 
"		</div>\n" + 
"\n" + 
"		<footer>\n" + 
"			<p>\n" + 
"				<!-- put links here -->\n" + 
"			</p>\n" + 
"		</footer>\n" + 
"\n" + 
"	</div>\n" + 
"\n" + 
"	<!-- 	Jq Lightbox -->\n" + 
"	<script type=\"text/javascript\">\n" + 
"		$(function() {\n" + 
"			// This, or...\n" + 
"			$('article.details .recipeImg a').lightBox(); // Select all links in the page\n" + 
"			$('article.details .recipeImgTwo a').lightBox(); // Select all links in the page\n" + 
"		});\n" + 
"	</script>\n" + 
"</body>\n" + 
"</html>");// line 134
				endDoLayout(sourceTemplate);	}

	protected abstract void doLayout();
}